<?php
include __DIR__ . '/../vendor/autoload.php';

$appkey = '';
$access_token = '';

$panbaidu = new OpenBaidu\PanBaidu();
$params['query']['access_token'] = $access_token;

// $data = $panbaidu->uinfo($params);
// $data = $panbaidu->quota($params);
//
/* $params['query']['dir'] = '/安装包';
 * $data = $panbaidu->filelist($params); */

$file = __DIR__ . '/a.mp4';
$panfile = '/apps/treasurehouse/a.mp4';
$data = $panbaidu->upload($file, $panfile, $access_token);
print_r($data);
